import request from "@/util/api.js"

/**
 * 客服审核  已支付订单审核
 * @param {*} group_order 
 * @param {*} type 
 */
export function examineCancelPayApi(group_order, type) {
	let serviceLogin = ''
	return request.post(`mar_service/examine_cancel/${group_order}/${type}`, {
		serviceLogin
	})
}

/**
 * 菜市场下店铺列表
 * @param {*} marId 
 */
export function merchantListApi(marId) {
	let serviceLogin = ''
	return request.get(`mar_service/merchant/list/${marId}`, {
		serviceLogin
	})
}

/**
 * 获取客服管理的菜市场列表
 */
export function marketListApi() {
	let serviceLogin = ''
	return request.get('mar_service/market/list', {
		serviceLogin
	})
}

/**
 * 获取商户商品列表
 * @param {Object} data
 */
export function merchantProductListApi(data) {
	data.serviceLogin = ''
	return request.get('mar_service/merchant/product_list', data)
}

/**
 * 商户商品详情
 * @param {*} data 
 */
export function merchantProductDetailsApi(data) {
	data.serviceLogin = ''
	return request.get('mar_service/merchant/product_details', data)
}

/**
 * 保存编辑的商品价格
 * @param {*} data 
 */
export function saveUpdateProductAttrApi(data) {
	data.serviceLogin = ''
	return request.post('mar_service/merchant/saveEdit', data)
}
